GetLicenseRecord

SoftwareShield CheckPoint™ License Server > CheckPoint™ License Server Interfaces > CheckPoint_Webservice_References > GetLicenseRecord

## GetLicenseRecord

The GetLicenseRecord function will retrieve a license record from the checkpoint database.

###### Syntax

TRecordResponse * GetLicenseRecord( long AlicenseID, BSTR ASessionID, TCheckPointLicenseRecord *& ACheckPointLicenseRecord ) ;

###### Parameters

AlicenseID

[IN] This is a numeric value which represents the license id. It is used to identify which license record to retrieve.

ASessionID

[IN] This is the session ID of the logged in user.

ACheckPointLicenseRecord

[IN] This is a TCheckPointLicenseRecord class which will be returned to the user. This class will contain the license record that is retrieved. The fields of interest are:

- LicenseID- the license id

- LicenseProjectFileNamePath- the file path of the license project

- Deleted- if the record was deleted

###### Remarks

The return value of this function is to verify that it was successful. The retrieved user record will be located in the out parameter ACheckPointLicenseRecord.

Only administrators are allowed to use this function.

###### Return Value

Returns the custom class TRecordResponse. The fields of interest that is related to this method are:

- Success- True will be returned if this function was successful, otherwise false will be returned.

- PrimaryKeyValue- the license ID of the user that is retrieved.

- ErrorMessage- if an error occurred, the associated error message can be found in this field.

###### Function Information

Exposed By Interface: | "ICheckPointService"
Exposed In ISAPI DLL: | "checkpoint.dll"